
let routeHandle = (pathname,req,res)=> {

	// console.log("About to route a request for " + pathname+"此次用的module。expots");
	var route = {
		test:(argu)=>{
			console.log(argu);
			return {
				jsonTest:123
			}
		}
	}

	if(route[pathname]) {
		res.writeHead('200',{"content-type":'application/json;charset=utf-8'});
		res.write("{test:'success'}");
		res.end();
	}else {
		console.log('访问的路由不存在');
	}

	// return route[pathname];

}

// exports.route = routeHandle;  暴露接口名route
module.exports = routeHandle;  